package com.easondongh.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * CREATE TABLE `tb_course`  (
 *   `id` bigint(20) NOT NULL,
 *   `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
 *   `user_id` int(50) NULL DEFAULT NULL,
 *   `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
 *   PRIMARY KEY (`id`) USING BTREE
 * ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
 * @author donghao
 * @date 2022/9/4 21:45
 */
@TableName(value = "tb_course")
public class Course {

    @TableId
    private Long id;

    private String name;

    private Long userId;

    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Course{" +
                "cid=" + id +
                ", cname='" + name + '\'' +
                ", userId=" + userId +
                ", cstatus='" + status + '\'' +
                '}';
    }
}
